
PROJECT(CVisImageIO)

INCLUDE_DIRECTORIES(../../ThirdParty/niftilib)
INCLUDE_DIRECTORIES(../../ThirdParty/libtiff)
INCLUDE_DIRECTORIES(../../Utility)

# sources
SET( CVisImageIO_Sources

# header files
    CVisImageIO.h
    CVisNiftiImageIO.h

# source files
    CVisImageIO.cpp
    CVisNiftiImageIO.cpp

)

ADD_DEFINITIONS(-DHAVE_TIFFLIB)
ADD_DEFINITIONS(-DHAVE_NIFTILIB)

#Rule to build executable program
ADD_LIBRARY(CVisImageIO ${CVisImageIO_Sources} )
TARGET_LINK_LIBRARIES(CVisImageIO ${TIFF_LIBRARY} ${NIFTI_LIBRARY})
SET(CVisImageIO_LIBRARY CVisImageIO CACHE STRING "" FORCE)

ADD_DEPENDENCIES(CVisImageIO tiff nifti)


